<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h3>감독</h3>
<hr align="left" width="150">
<center>
<table class="list">
	<c:forEach var="directorVO" items="${requestScope.dlistvo.directorList}">
	<tr>
		<td width="100"><img src="${initParam.root }${directorVO.directorImgPath }" width="200" height="120"></td>
		<td width="400" valign="middle">
			<a href="${initParam.root }movie/director_content.do?directorNo=${directorVO.directorNo }">${directorVO.name}</a>
		</td>
	</tr>
	</c:forEach>
	<tr align="center">
		<td colspan="2">
		<c:if test="${requestScope.dlistvo.pagingBean.previousPageGroup}">
			 <a href="${initParam.root }movie/directorList.do?pageNo=${requestScope.dlistvo.pagingBean.startPageOfPageGroup-1}">◀&nbsp;</a>
		</c:if>
		<c:forEach var="i" begin="${requestScope.dlistvo.pagingBean.startPageOfPageGroup}" end="${requestScope.dlistvo.pagingBean.endPageOfPageGroup}">
		 	<c:choose>
		 		<c:when test="${requestScope.dlistvo.pagingBean.nowPage!=i}">
		 			<a href="${initParam.root }movie/directorList.do?pageNo=${i}">${i}</a>
		 		</c:when>
			 	<c:otherwise>
					${i}
				</c:otherwise>
			</c:choose>
		</c:forEach>
		<c:if test="${requestScope.dlistvo.pagingBean.nextPageGroup}">
			<a href="${initParam.root }movie/directorList.do?pageNo=${requestScope.dlistvo.pagingBean.endPageOfPageGroup+1}"> ▶ </a>
		</c:if>	
		</td>
	</tr>
</table>
</center>